package com.test.springboot3.springboot3testdemo1.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： liuziyang
 * @date： 2024/8/5-23:03
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Slf4j
@Component
public class SimpleTask {

  @Async("taskExecutor2")
  @Scheduled(cron = "0/5 * * * * ?")
  public void printTask() {
    //    log.info("SimpleTask printTask [{}]", LocalDateTime.now());
  }
}
